Authenticate Keys
π Overviewβ
The AuthenticateKeys API validates SynapseWave Innovations Private Limitedβissued application API keys and returns a session token, which must be included in the authorization header for all subsequent API calls.
π Endpointβ
| Method | URL |
|---|---|
| POST | <protocol>://<host name>:<service port>/<service name>/<tenantid>/v1/authenticateKeys |
Requestβ
π₯ Parametersβ
| Parameter | Data Type | Mandatory / Optional | Description |
|---|---|---|---|
apiKey | String | Mandatory | API key provided by SynapseWave Innovations Private Limited |
secretKey | String | Mandatory | Secret key provided by SynapseWave Innovations Private Limited |
Example Request Bodyβ
{
"apiKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJDdXN0b21lcklkIjoiMTUyMyIsIm5Ob2RlTGljZW5zZUV4cGlyeSI6IjE4OTM2MDkwMDAiLCJpYXQiOjE1NjM2MDI2Nzd9.oRVgIlN3K_m5AXh_K1M88exzBg96CYJEVo_LQ-SY5Kd",
"secretKey": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJDdXN0b21lcklkIjoiMTUyMyIsIm5Ob2RlTGljZW5zZUV4cGlyeSI6IjE4OTM2MDkwMDAiLCJpYXQiOjE1NjM2MDI2Nzd9.oRVgIlN3K_m5AXh_K1M88exzBg96CYJEVo_LQ-SY5Kd"
}
Responseβ
The ResponseObject contains the following parameters in a JSON object:
π¦ Response Parametersβ
| Parameter (Key) | Data Type | Description |
|---|---|---|
status | boolean | Status of the request. true if a session key is generated, false if an error occurred. |
errorCode | string | Error code, if any error occurred. |
errorString | string | Error description. |
sessionKey | string | Generated session key. This must be passed in the Authorization header for all subsequent API requests. |
Example Responsesβ
π’ Success Responseβ
{
"status": true,
"errorCode": "",
"errorString": "",
"sessionKey": "eyBDyGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJDdXN0b21lcklkIjoiMTUyMyIsIm5Ob2RlTGljZW5zZUV4cGlyeSI6IjE4OTM2MDkwMDAiLCJpYXQiOjE1NjM2MDI2Nzd9.oRVgIlN3K_m5AXh_K1M88exzBg96CYJEVo_LQ-YZ6Yd"
}
π΄ Error Responseβ
{
"status": false,
"errorCode": "500",
"errorString": "Invalid API key / Secret key",
"sessionKey": ""
}